import React,{Component} from 'react'
import {Result , Button} from 'antd'
export default class NotFound extends Component{
    constructor(props) {
        super(props);
        this.goBack = this.goBack.bind(this)
    }
    goBack(){
        this.props.history.push('/')
    }
    render() {
        return(
            <div>
                <Result
                    status="404"
                    title="404"
                    subTitle="呀,你来到了一个名为404的神奇领域"
                    extra={<Button type="primary" onClick={this.goBack}>返回首页</Button>}
                />
            </div>
        )
    }
}
